.PHONY:all
all:write read

write:write.cc contact.pb.cc 
	g++ -o $@ $^ -std=c++11 -lprotobuf
read:read.cc contact.pb.cc
	g++ -o $@ $^ -std=c++11 -lprotobuf

.PHONY:clean
clean:
	rm -f write read